package br.com.criativasystem.visao;

import java.awt.Toolkit;

/**
 *
 * @author
 * Lucas
 * Calixto
 */
public class Principal extends javax.swing.JFrame {

    ViewLogin login;

    public Principal() {
        initComponents();
        setExtendedState(MAXIMIZED_BOTH);

        login = new ViewLogin(this, true);
        login.setTitle("Login");
        login.setVisible(true);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        barraBtnMenu = new javax.swing.JToolBar();
        btnRegistrarVenda = new javax.swing.JButton();
        sepUm = new javax.swing.JToolBar.Separator();
        btnCadastrarCliente = new javax.swing.JButton();
        btnCadastrarFormaPagamento = new javax.swing.JButton();
        sepDois = new javax.swing.JToolBar.Separator();
        btnRelatorioCliente = new javax.swing.JButton();
        btnRelatorioPosicaoCliente = new javax.swing.JButton();
        btnRelatorioContasReceber = new javax.swing.JButton();
        sepTres = new javax.swing.JToolBar.Separator();
        btnAjuda = new javax.swing.JButton();
        btnSair = new javax.swing.JButton();
        panelCentral = new javax.swing.JPanel();
        lbImagemCentro = new javax.swing.JLabel();
        panelRodape = new javax.swing.JPanel();
        lbRodape = new javax.swing.JLabel();
        barraMenu = new javax.swing.JMenuBar();
        mnArquivo = new javax.swing.JMenu();
        mnSair = new javax.swing.JMenuItem();
        mnCadastro = new javax.swing.JMenu();
        mnClientes = new javax.swing.JMenuItem();
        mnFormaPagamento = new javax.swing.JMenuItem();
        mnRelatorios = new javax.swing.JMenu();
        mnRelatorioClientes = new javax.swing.JMenuItem();
        mnPosicaoClientes = new javax.swing.JMenuItem();
        mnContasReceber = new javax.swing.JMenuItem();
        mnAjuda = new javax.swing.JMenu();
        mnComoUsar = new javax.swing.JMenuItem();
        mnSobre = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("CUC -  Cadastro Unico de Clientes");
        setIconImage(Toolkit.getDefaultToolkit().getImage(Principal.class.getResource("/Icones/24x24/home.png")));

        barraBtnMenu.setFloatable(false);
        barraBtnMenu.setRollover(true);

        btnRegistrarVenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/shopping_cart_accept.png"))); // NOI18N
        btnRegistrarVenda.setToolTipText("Registrar Venda");
        btnRegistrarVenda.setFocusable(false);
        btnRegistrarVenda.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRegistrarVenda.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnRegistrarVenda);
        barraBtnMenu.add(sepUm);

        btnCadastrarCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/user.png"))); // NOI18N
        btnCadastrarCliente.setToolTipText("Cadastar Cliente");
        btnCadastrarCliente.setFocusable(false);
        btnCadastrarCliente.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnCadastrarCliente.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnCadastrarCliente);

        btnCadastrarFormaPagamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/edit_page.png"))); // NOI18N
        btnCadastrarFormaPagamento.setToolTipText("Cadastrar Forma de Pagamento");
        btnCadastrarFormaPagamento.setFocusable(false);
        btnCadastrarFormaPagamento.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnCadastrarFormaPagamento.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnCadastrarFormaPagamento);
        barraBtnMenu.add(sepDois);

        btnRelatorioCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/users.png"))); // NOI18N
        btnRelatorioCliente.setToolTipText("Relatórios Cliente");
        btnRelatorioCliente.setFocusable(false);
        btnRelatorioCliente.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRelatorioCliente.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnRelatorioCliente);

        btnRelatorioPosicaoCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/chart_up.png"))); // NOI18N
        btnRelatorioPosicaoCliente.setToolTipText("Relatório Posição de Clientes");
        btnRelatorioPosicaoCliente.setFocusable(false);
        btnRelatorioPosicaoCliente.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRelatorioPosicaoCliente.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnRelatorioPosicaoCliente);

        btnRelatorioContasReceber.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/up.png"))); // NOI18N
        btnRelatorioContasReceber.setToolTipText("Relatórios Contas a Receber");
        btnRelatorioContasReceber.setFocusable(false);
        btnRelatorioContasReceber.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRelatorioContasReceber.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnRelatorioContasReceber);
        barraBtnMenu.add(sepTres);

        btnAjuda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/help.png"))); // NOI18N
        btnAjuda.setToolTipText("Como Usuar o Sistema");
        btnAjuda.setFocusable(false);
        btnAjuda.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAjuda.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnAjuda);

        btnSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/32x32/delete.png"))); // NOI18N
        btnSair.setToolTipText("Sair do sistema");
        btnSair.setFocusable(false);
        btnSair.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnSair.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraBtnMenu.add(btnSair);

        panelCentral.setLayout(new java.awt.BorderLayout());

        lbImagemCentro.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lbImagemCentro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/48x48/home_1.png"))); // NOI18N
        panelCentral.add(lbImagemCentro, java.awt.BorderLayout.CENTER);

        panelRodape.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        lbRodape.setText("Criativa System - Em caso de duvidas entre em contato: lucas.clst@gmail.com.");

        javax.swing.GroupLayout panelRodapeLayout = new javax.swing.GroupLayout(panelRodape);
        panelRodape.setLayout(panelRodapeLayout);
        panelRodapeLayout.setHorizontalGroup(
            panelRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelRodapeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lbRodape)
                .addContainerGap(259, Short.MAX_VALUE))
        );
        panelRodapeLayout.setVerticalGroup(
            panelRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lbRodape)
        );

        panelCentral.add(panelRodape, java.awt.BorderLayout.PAGE_END);

        mnArquivo.setText("Arquivo");

        mnSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.ALT_MASK));
        mnSair.setText("Sair");
        mnArquivo.add(mnSair);

        barraMenu.add(mnArquivo);

        mnCadastro.setText("Cadastro");

        mnClientes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
        mnClientes.setText("Clientes");
        mnCadastro.add(mnClientes);

        mnFormaPagamento.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_MASK));
        mnFormaPagamento.setText("Forma de Pagamento");
        mnCadastro.add(mnFormaPagamento);

        barraMenu.add(mnCadastro);

        mnRelatorios.setText("Relatórios");

        mnRelatorioClientes.setText("Clientes");
        mnRelatorios.add(mnRelatorioClientes);

        mnPosicaoClientes.setText("Posição de Cliente");
        mnRelatorios.add(mnPosicaoClientes);

        mnContasReceber.setText("Contas a Receber");
        mnRelatorios.add(mnContasReceber);

        barraMenu.add(mnRelatorios);

        mnAjuda.setText("Ajuda");

        mnComoUsar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        mnComoUsar.setText("Como Usar");
        mnAjuda.add(mnComoUsar);

        mnSobre.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F12, 0));
        mnSobre.setText("Sobre o CUC");
        mnAjuda.add(mnSobre);

        barraMenu.add(mnAjuda);

        setJMenuBar(barraMenu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(barraBtnMenu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panelCentral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(barraBtnMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelCentral, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)
                .addGap(0, 0, 0))
        );

        setSize(new java.awt.Dimension(666, 499));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    public static void main(String args[]) {
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Principal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToolBar barraBtnMenu;
    private javax.swing.JMenuBar barraMenu;
    private javax.swing.JButton btnAjuda;
    private javax.swing.JButton btnCadastrarCliente;
    private javax.swing.JButton btnCadastrarFormaPagamento;
    private javax.swing.JButton btnRegistrarVenda;
    private javax.swing.JButton btnRelatorioCliente;
    private javax.swing.JButton btnRelatorioContasReceber;
    private javax.swing.JButton btnRelatorioPosicaoCliente;
    private javax.swing.JButton btnSair;
    private javax.swing.JLabel lbImagemCentro;
    private javax.swing.JLabel lbRodape;
    private javax.swing.JMenu mnAjuda;
    private javax.swing.JMenu mnArquivo;
    private javax.swing.JMenu mnCadastro;
    private javax.swing.JMenuItem mnClientes;
    private javax.swing.JMenuItem mnComoUsar;
    private javax.swing.JMenuItem mnContasReceber;
    private javax.swing.JMenuItem mnFormaPagamento;
    private javax.swing.JMenuItem mnPosicaoClientes;
    private javax.swing.JMenuItem mnRelatorioClientes;
    private javax.swing.JMenu mnRelatorios;
    private javax.swing.JMenuItem mnSair;
    private javax.swing.JMenuItem mnSobre;
    private javax.swing.JPanel panelCentral;
    private javax.swing.JPanel panelRodape;
    private javax.swing.JToolBar.Separator sepDois;
    private javax.swing.JToolBar.Separator sepTres;
    private javax.swing.JToolBar.Separator sepUm;
    // End of variables declaration//GEN-END:variables
}
